/**
 * 
 */
package com.wskj.library.book.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wskj.library.pojo.Employer;
import com.wskj.library.service.BookService;
import com.wskj.library.service.impl.BookServiceImpl;
import com.wskj.util.StringUtil;

/**
 * @author 胡洋
 * @describe 
 * @Date 2018年3月27日上午8:59:55
 * @version 1.0
 */
@WebServlet(urlPatterns="/book/borrow.do")
public class BookBorrowServlet extends HttpServlet {
	
	private BookService bookService=new BookServiceImpl();	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		//员工的信息  借阅的图书  借出的时间 .....
		Employer em=(Employer) req.getSession().getAttribute("user");		
		int id=StringUtil.nullToInt(req.getParameter("id"));		
		// 
		
		
		
	}	
	
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
		doGet(req, resp);
	}
}
